#ifndef PANEL_WIDGET_H
#define PANEL_WIDGET_H

#include "Widget.h"
#include "../Graphics.h"
#include "../DisplayObjectContainer.h"
#include "../../math/Point2D.h"

class PanelWidget : public Widget, public DisplayObjectContainer
{
    public:
        
        PanelWidget(const Point2D& position, const Point2D& size);
        
        void Render(SDL_Surface* surface);
        
        const Point2D& GetPosition() const;
        
        const Point2D& GetSize() const;
        
    private:
        
        SDL_Rect _offset;
        
        SDL_Surface* _panel_surface;
        
        Point2D _position;
        
        Point2D _size;
};

#endif
